function setSidebarActive(th){
    $(th).parent("li").siblings().removeClass("active");
    $(th).parent("li").addClass("active");
}

function getCheckId() {
    let checks = $("input:checkbox:checked");
    var size = checks.length;
    if(size !== 0) {
        let ids = '';
        for (let i = 0; i < size; i++) {
            let id = checks[i].value;
            ids+= id +",";
        }
        return ids;
    }else {
        return null;
    }
}

function formSubmit (url,sTarget){
    document.forms[0].target = sTarget
    document.forms[0].action = url;
    document.forms[0].submit();
    return true;
}